//Print all the prime numbers inbetween 1000 and 2000.
class prog8
	{
	public static void main(String args[])
		{
		int num,count;
		for(int x=1000; x<=2000;x++)
			{
			num=x;
			count=0;
			for(int i=1;i<num;i++)
				{	
				if(num%i==0)
				count++;
				}  
			if(count==1)
				System.out.println(num);
			}
		}
	}
		